#ifndef JUDGE_H_
#define JUDGE_H_

#include "GobangDoc.h"
#include "score.h"

class Judge{
public:
	Judge(CGobangDoc* doc);
	Score evaluate(int x,int y,BoardState color);
private:
	bool hasGB1(int x,int y,BoardState color);
	bool hasGB2(int x,int y,BoardState color);
	bool hasGB3(int x,int y,BoardState color);
	bool hasGB4(int x,int y,BoardState color);
	bool hasGB5(int x,int y,BoardState color);
	bool hasGB6(int x,int y,BoardState color);
	bool hasGB7(int x,int y,BoardState color);
	bool hasGB8(int x,int y,BoardState color);
	bool hasGB9(int x,int y,BoardState color);
	bool hasGB10(int x,int y,BoardState color);
	bool hasGB11(int x,int y,BoardState color);
	bool hasGB12(int x,int y,BoardState color);
	bool hasGB13(int x,int y,BoardState color);
	bool hasGB14(int x,int y,BoardState color);
	bool hasGB15(int x,int y,BoardState color);
	bool hasGB16(int x,int y,BoardState color);
	CGobangDoc* pDoc;
};

#endif
